package com.example.demo.foward;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
public class FController {
    @GetMapping("/ff")
    public String ff(){

        return "foward:/success";
    }

    @ResponseBody
    @GetMapping("/success")
    public String success(){
        return "sucess";
    }

    @GetMapping("map")
    @ResponseBody
    public String map(Map<String,Object> map){

        return "map";
    }

    @GetMapping("user11")
    @ResponseBody
    public User bean(User user){
        return user;
    }



}
